<?php
 namespace App\Controllers;
 class information extends BaseController
 {
 public function index()
             {
        // connect to the model
        $models = new \App\Models\ixformModels();
        // retrieve all the records
        $records = $models->findAll();
        // get a template parser
         $parser = \Config\Services::parser();
    return $parser->setData($fields)
                        ->render('templates\top') .
                $table->generate() .
                        $parser->setData($fields)
                        ->render('templates\bottom');
    }
    
 
 }

